package com.xxx.service;

import com.xxx.entity.User;

import java.util.List;
import java.util.Set;

/**
 * user service 接口
 */
public interface UserService {

	public User createUser(User user);

	public User updateUser(User user);

	public void deleteUser(Long userId);

	public void changePassword(Long userId, String newPassword);

	User findOne(Long userId);

	List<User> findAll();

	public User findByUsername(String username);

	public Set<String> findRoles(String username);

	public Set<String> findPermissions(String username);

}
